package com.sampleidea;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class SurveyActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_survey);

		Button b = (Button) findViewById(R.id.survey_next);
		b.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				Intent myIntent= getIntent();
				Intent intent = new Intent(SurveyActivity.this, FacebookActivity.class);
				intent.putExtra("url", myIntent.getStringExtra("url"));
				startActivity(intent);
			}
		});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.activity_survey, menu);
		return true;
	}
}
